/**
 * @author CH_ywx
 * @Date 2023-05-28
 * @Description
 */
package io.xccit.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *@author CH_ywx
 *@Date 2023-05-28
 *@Description 性别枚举
 */
@Getter
@AllArgsConstructor
public enum Sex {
    MALE(1,"男"),
    FEMALE(2,"女");

    @EnumValue  //指定存进数据库的值
    private final Integer sexNum;
    private final String sexStr;
}
